<div ng-show="(vm.result.data.status=='0')" align="center" style="margin-top:10px" class="control">
    <h1>待审核中......</h1>
</div>
<div ng-show="(vm.result.data.status=='2')" align="center" style="margin-top:10px" class="control">
    <h1>申请被驳回......</h1>
    <h1>理由:{{vm.result.data.reason}}</h1>
</div>
<div class="register-base">
  <div class="register-div-out">
    <div><h1 class="register-title">重新提交信息</h1></div>
    <div class="register-div">
      <form enctype="multipart/form-data" action="/m/merchant/merchantUpdate" method="POST" class="form-horizontal showcase-form "
        role="form" id="basic_form" name="basic_form" novalidate="">
        <input name="_id" value="{{vm.mid}}" type="hidden"/>
        <div class="form-group">
          <label class="col-sm-2 control-label">User Name</label>

          <div class="col-sm-10">
            <input type="text" readonly  name="mname" value="{{vm.result.m.mname}}" required="" class="form-control" placeholder="User Name">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Password</label>

          <div class="col-sm-10">
            <input type="password" required="" id="mpwd" name="mpwd" ng-model="vm.merchant.mpwd" class="form-control" placeholder="密码"
              ng-change="vm.pwdCheck()">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Password</label>

          <div class="col-sm-10">
            <input type="password" required="" id="compwd" name="compwd" ng-model="vm.merchant.compwd" class="form-control" placeholder="确认密码"
              ng-change="vm.pwdCheck()">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Address</label>

          <div class="col-sm-10">
            <input type="text" required="" name="maddr" ng-model="vm.merchant.maddr" class="form-control" placeholder="地址">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">IC Number</label>

          <div class="col-sm-10">
            <input type="text" required="" name="icnum" ng-model="vm.merchant.icnum" class="form-control" ng-maxlength="18" ng-minlength="18"
              placeholder="18位身份号码">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">Ic Pic</label>
          <div class="col-md-6">
            <input ng-file-select type="file" name="icpic" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">portrait Pic</label>
          <div class="col-md-6">
            <input ng-file-select type="file" name="portraitpic" />
          </div>
        </div>
        <div class="form-group" ng-show="basic_form.$invalid && (basic_form.$dirty) && vm.show_error">
          <label class="col-sm-2 control-label"></label>

          <div class="col-sm-10">
            <div class="alert alert-danger" style="margin-bottom: 0px">
              <ul>
                <li ng-show="(basic_form.mname.$dirty) && basic_form.mname.$error.required">UserName不能为空！</li>
                <li ng-show="(basic_form.mpwd.$dirty) && basic_form.mpwd.$error.required">密码不能为空！</li>
                <li ng-show="(basic_form.compwd.$dirty) && basic_form.compwd.$error.required">确认密码不能为空！</li>
                <li ng-show="(basic_form.icnum.$dirty) && basic_form.icnum.$error.required">身份证号不能为空！</li>
                <li ng-show="(basic_form.icnum.$dirty) && basic_form.icnum.$error.maxlength">身份证号要18位</li>
                <li ng-show="(basic_form.icnum.$dirty) && basic_form.icnum.$error.minlength">身份证号要18位</li>
                <li ng-show="vm.inconformity">两次密码不一致</li>
              </ul>
            </div>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <input type="submit" class="btn btn-success" value="提交" />
          </div>
        </div>
      </form>
    </div>
  </div>
</div>